package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;
// default package

/**
 * CalendarDayDTO entity. @author MyEclipse Persistence Tools
 */

public class CalendarDayDTO extends java.lang.Object implements IsSerializable {


    // Fields    

     private long id;
     private SemesterDTO semester;
     private String dayLabel;
     private long displayOrder;
     private boolean sunday;


    // Constructors

    /** default constructor */
    public CalendarDayDTO() {
    }

    
    /** full constructor */
    public CalendarDayDTO(SemesterDTO semester, String dayLabel, long displayOrder, boolean sunday) {
        this.semester = semester;
        this.dayLabel = dayLabel;
        this.displayOrder = displayOrder;
        this.sunday = sunday;
    }


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}


	public SemesterDTO getSemester() {
		return semester;
	}


	public void setSemester(SemesterDTO semester) {
		this.semester = semester;
	}


	public String getDayLabel() {
		return dayLabel;
	}


	public void setDayLabel(String dayLabel) {
		this.dayLabel = dayLabel;
	}


	public long getDisplayOrder() {
		return displayOrder;
	}


	public void setDisplayOrder(long displayOrder) {
		this.displayOrder = displayOrder;
	}




	public String toString() {
		String r;
		r = dayLabel + ", order: " + displayOrder + ", semestr: " + semester.toLabel();
		return r;
	}
	
	public String toLabel() {
		String r = "" +
			getDayLabel();
		return r;
	}


	public boolean isSunday() {
		return sunday;
	}


	public void setSunday(boolean sunday) {
		this.sunday = sunday;
	}









}